package com.org.gsc.menusdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import net.simonvt.menudrawer.MenuDrawer;
import net.simonvt.menudrawer.Position;

public class MainActivity extends AppCompatActivity {

    private MenuDrawer mDrawer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mDrawer = MenuDrawer.attach(this,MenuDrawer.Type.BEHIND, Position.RIGHT,MenuDrawer.MENU_DRAG_WINDOW);
        mDrawer.setContentView(R.layout.activity_main);
        TextView t=new TextView(this);
        t.setText("LeFT LEFT LEFT LEFT");
        mDrawer.setMenuView(t);
       // setContentView(R.layout.activity_main);
    }
}
